home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / exec / interrupts.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  1KB  |  50 lines

  1. #ifndef    EXEC_INTERRUPTS_H
  2. #define    EXEC_INTERRUPTS_H
  3. /*
  4. **    $Filename: exec/interrupts.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.4 $
  7. **    $Date: 90/05/10 $
  8. **
  9. **    Callback structures used by hardware & software interrupts
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_NODES_H
  16. #include "exec/nodes.h"
  17. #endif /* EXEC_NODES_H */
  18.  
  19. #ifndef EXEC_LISTS_H
  20. #include "exec/lists.h"
  21. #endif /* EXEC_LISTS_H */
  22.  
  23.  
  24. struct Interrupt {
  25.     struct  Node is_Node;
  26.     APTR    is_Data;            /* server data segment  */
  27.     VOID    (*is_Code)();        /* server code entry    */
  28. };
  29.  
  30.  
  31. struct IntVector {        /* For EXEC use ONLY! */
  32.     APTR    iv_Data;
  33.     VOID    (*iv_Code)();
  34.     struct  Node *iv_Node;
  35. };
  36.  
  37.  
  38. struct SoftIntList {        /* For EXEC use ONLY! */
  39.     struct List sh_List;
  40.     UWORD  sh_Pad;
  41. };
  42.  
  43. #define SIH_PRIMASK (0xf0)
  44.  
  45. /* this is a fake INT definition, used only for AddIntServer and the like */
  46. #define INTB_NMI    15
  47. #define INTF_NMI    (1<<15)
  48.  
  49. #endif    /* EXEC_INTERRUPTS_H */
  50.